<?php

/*include 'common.inc.php';*/


include 'wap.func.php';

$lang = include 'lang.inc.php';

/*if(preg_match('/(mozilla|m3gate|winwap|openwave)/i', $_SERVER['HTTP_USER_AGENT'])) 
{
	header('location:../');
}*/

wmlHeader($SETTING['sitename']);


$action = isset($action) && !empty($action) ? $action : 'index';
if($action) 
{
	include $action.'.inc.php';
}

$html =  CHARSET != 'utf-8' ? iconv(CHARSET, 'utf-8', $html) : $html;
echo str_replace('<br/>', "<br/>\n", $html);
wmlFooter();
?>